package com.yuanqunsoft.alimigration.service;

import java.util.List;

import com.yuanqunsoft.alimigration.bean.RuleBean;
import com.yuanqunsoft.alimigration.model.Rule;

public interface IRuleService {

    public boolean isRuleNameExisted(RuleBean rule);
    
    public boolean addRule(RuleBean rule, int remediationId);

    public boolean deleteRule(RuleBean rule);

    public boolean update(RuleBean rule);

    public RuleBean getRuleById(int id);
    
    public Rule getRuleByName(String name);

    public List<RuleBean> getAllRule(int currentPage, int pageSize);

    public List<RuleBean> getAllRule();

    public int getAllPage();

    public void selectRemediation(RuleBean rule, int remediationId);
}
